package cn.com.gzheroli.bfw.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.com.gzheroli.bfw.mapper.system.IconMapper;
import cn.com.gzheroli.bfw.pojo.base.TSIcon;
import cn.com.gzheroli.service.bfw.IconService;
import cn.com.gzheroli.core.util.mybatis.SqlMapper;

@Service("iconService")
public class IconServiceImpl   implements IconService{

	private static final Logger logger=Logger.getLogger(IconServiceImpl.class);
	
	@Resource
	private IconMapper iconMapper;
	@Autowired
	SqlMapper sqlMapper;
	
	public List<TSIcon> getIconList(Map datamap) {
		
		
		return  iconMapper.getIconList(datamap);
	}


	public Long getIconAcount(Map datamap) {
		return iconMapper.getIconAcount(datamap);
	}
	public List<TSIcon> getAllIcon(Map datamap){
		String sql="select id,NAME,PATH,TYPE,ICON_CLAS,EXTEND from t_s_icon";
		return sqlMapper.selectList(sql, datamap, TSIcon.class);
	}

}
